package com.attendance.sz.up.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 作者：TanTun
 * 时间：2017/3/3
 * 邮箱：32965926@qq.com
 * 描述：卡片信息
 */

public class EmployeeCardInfo implements Parcelable {
    private int employeeID;
    private String employeeName;
    private String employeeStrID;
    private int mainCardID;
    private int cardID;
    private String employeeTel;
    private long factoryFixID;
    private int cardStatusIDXF;
    private List<Bag> bags;

    protected EmployeeCardInfo(Parcel in) {
        employeeID = in.readInt();
        employeeName = in.readString();
        employeeStrID = in.readString();
        mainCardID = in.readInt();
        cardID = in.readInt();
        employeeTel = in.readString();
        factoryFixID = in.readLong();
        cardStatusIDXF = in.readInt();
        bags = in.createTypedArrayList(Bag.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(employeeID);
        dest.writeString(employeeName);
        dest.writeString(employeeStrID);
        dest.writeInt(mainCardID);
        dest.writeInt(cardID);
        dest.writeString(employeeTel);
        dest.writeLong(factoryFixID);
        dest.writeInt(cardStatusIDXF);
        dest.writeTypedList(bags);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<EmployeeCardInfo> CREATOR = new Creator<EmployeeCardInfo>() {
        @Override
        public EmployeeCardInfo createFromParcel(Parcel in) {
            return new EmployeeCardInfo(in);
        }

        @Override
        public EmployeeCardInfo[] newArray(int size) {
            return new EmployeeCardInfo[size];
        }
    };

    public int getEmployeeID() {
        return employeeID;
    }

    public void setEmployeeID(int employeeID) {
        this.employeeID = employeeID;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeStrID() {
        return employeeStrID;
    }

    public void setEmployeeStrID(String employeeStrID) {
        this.employeeStrID = employeeStrID;
    }

    public int getMainCardID() {
        return mainCardID;
    }

    public void setMainCardID(int mainCardID) {
        this.mainCardID = mainCardID;
    }

    public int getCardID() {
        return cardID;
    }

    public void setCardID(int cardID) {
        this.cardID = cardID;
    }

    public String getEmployeeTel() {
        return employeeTel;
    }

    public void setEmployeeTel(String employeeTel) {
        this.employeeTel = employeeTel;
    }

    public long getFactoryFixID() {
        return factoryFixID;
    }

    public void setFactoryFixID(long factoryFixID) {
        this.factoryFixID = factoryFixID;
    }

    public int getCardStatusIDXF() {
        return cardStatusIDXF;
    }

    public void setCardStatusIDXF(int cardStatusIDXF) {
        this.cardStatusIDXF = cardStatusIDXF;
    }

    public List<Bag> getBags() {
        return bags;
    }

    public void setBags(List<Bag> bags) {
        this.bags = bags;
    }
}
